package com.zhuiyun.educations.api.learningrecord.entity.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName LearningRecordEntityDTO
 * @Description TODO
 * @Author cjl
 * @Date 2023/6/26 19:19
 **/
@Data
public class LearningRecordEntityDTO {

    /**
     * id 学习记录表（车俊楼）
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 课程标题
     */
    private String courseTitle;
    /**
     *
     */
    private String introduction;
    /**
     *
     */
    private Integer courseId;
    /**
     * 课程图片id
     */
    private Integer imageId;
    /**
     *
     */
    private Integer teacherId;
    /**
     *
     */
    private String courseType;
    /**
     *
     */
    private String payType;
    /**
     *
     */
    private String courseStatus;
    /**
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date beginTime;
    /**
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createTime;
    /**
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date updateTime;
    /**
     *
     */
    private Integer delFlag;
    /**
     *
     */
    private String type;
    /**
     *
     */
    private String tName;
    /**
     *
     */
    private Integer teacherImageId;
    /**
     *
     */
    private String subjectType;
    /**
     * 历史记录创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date time;




}
